<template>
  <div class="Button">
    <button class="button" @click="backClick">返回</button>
  </div>
</template>
<script>
export default {
  methods: {
    backClick() {
      this.$store.commit('setFlag', false)
      this.$router.push('/')
    }
  }
}
</script>
<style scoped>
.Button {
  box-sizing: border-box;
  width: 30vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 60vw;
  margin-bottom: 1rem;
  //pointer-events: all;
  /* flex-wrap: nowrap; */
}
.button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  min-height: 2.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f0f0f0;
  color: #333;
  cursor: pointer;
  text-align: center;
  margin: 0 0.25rem;
  transition: background-color 0.2s, border-color 0.2s;
  //pointer-events: all;
}
@media  (max-width: 768px) {
  .Button {
    width: 70vw;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .button {
    flex-basis: 40%;
    margin: 0.5rem 5%;
    font-size: 1rem;
    padding: 0.6rem 0.5rem;
  }
}
</style>
